package casa.depesos.app.com.http.req;

import casa.depesos.app.com.http.HttpReq;
import casa.depesos.app.com.http.Req;
import casa.depesos.app.com.http.ReqCallback;
import casa.depesos.app.com.http.bean.BankCardBean;
import casa.depesos.app.com.http.parser.BankCardParser;
import casa.depesos.app.com.utils.Constant;
import okhttp3.FormBody;

public class BankCardReq implements HttpReq<BankCardBean> {

    @Override
    public void req(ReqCallback<BankCardBean> callback) {//   queryCards
        if (Constant.white) {
            callback.callback(true, new BankCardBean());
            return;
        }
        FormBody.Builder builder = new FormBody.Builder();
        Req.post("/app/cardBinding/retrieveCardList", getParam(), getHeader(), builder.build(), new BankCardParser(), callback, this);
    }
}
